<?php

namespace app\im\controller;

use app\im\service\ConversationService;

/**
 * 会话管理
 */
class Conversation
{
    protected $service;

    public function __construct()
    {
        $this->service = new ConversationService();
    }

    public function index()
    {
        $result = $this->service->getListByUserId(get_curr_user_id());
        return resp_success($result);
    }
}
